//  all - 点图层默认样式
const allPointStyle = {
  'type': 'circle',
  id: 'search-all-point',
  source: {
    type: 'geojson',
    data: null
  },
  'paint': {
    'circle-radius': 3,
    'circle-color': 'red'
  }
};
//  page - 点图层默认样式
const pagePointStyle = {
  'type': 'circle',
  id: 'search-page-point',
  source: {
    type: 'geojson',
    data: null
  },
  'paint': {
    'circle-radius': 3,
    'circle-color': 'blue'
  }
};
// all - 线图层默认样式
const allLinetyle = {
  'type': 'line',
  id: 'search-all-line',
  source: {
    type: 'geojson',
    data: null
  },
  'layout': {
    'line-cap': 'round',
    'line-join': 'round'
  },
  'paint': {
    'line-color': 'red',
    'line-width': 2
  }
};
// all - 线图层默认样式
const pageLinetyle = {
  'type': 'line',
  id: 'search-page-line',
  source: {
    type: 'geojson',
    data: null
  },
  'layout': {
    'line-cap': 'round',
    'line-join': 'round'
  },
  'paint': {
    'line-color': 'blue',
    'line-width': 2
  }
};
// all - 面图层默认样式
const allPolygontyle = {
  'type': 'fill',
  id: 'search-all-polygon',
  source: {
    type: 'geojson',
    data: null
  },
  'layout': {},
  'paint': {
    'fill-color': 'red'
  }
};
// page - 面图层默认样式
const pagePolygontyle = {
  'type': 'fill',
  id: 'search-page-polygon',
  source: {
    type: 'geojson',
    data: null
  },
  'layout': {},
  'paint': {
    'fill-color': 'blue'
  }
};
const iconStyle = {
  id: 'search-top10',
  type: 'symbol',
  source: {
    type: 'geojson',
    data: null
  },
  paint: {
    'text-color': '#fff',
    'text-halo-color': '#FFFFFF'
  },
  layout: {
    'icon-image': 'search-top10',
    'icon-offset': [0, 0],
    'icon-allow-overlap': true,
    'text-allow-overlap': true,
    'icon-size': 1,
    'icon-anchor': 'bottom',
    'text-size': 12,
    'text-font': ['MicrosoftYaHeiBold'],
    'text-offset': [0, -1.5],
    'text-anchor': 'center',
    'text-field': ['to-string', ['get', 'index']],
    'text-justify': 'center'
  }
};
const ids = [
  'search-all-point',
  'search-page-point',
  'search-all-line',
  'search-page-line',
  'search-all-polygon',
  'search-page-polygon',
  'search-top10'
];


export { allPointStyle, pagePointStyle, allLinetyle, pageLinetyle, allPolygontyle, pagePolygontyle, iconStyle, ids };

